/**
 * 本文件由尚数增量代码引擎生成
 * @author Shann <851188611@qq.com>
 */
import { request } from "./request";

export function getProductList(param?: any) {
  return request("/admin/product", param);
}

export function createProduct(param?: any) {
  return request("/admin/product/create", param);
}

export function updateProduct(param?: any) {
  return request("/admin/product/update", param);
}

export function deleteProduct(param?: any) {
  return request("/admin/product/delete", param);
}

export function getProductCategoryList(param?: any) {
  return request("/admin/productCategory", param);
}

export function createProductCategory(param?: any) {
  return request("/admin/productCategory/create", param);
}

export function updateProductCategory(param?: any) {
  return request("/admin/productCategory/update", param);
}

export function deleteProductCategory(param?: any) {
  return request("/admin/productCategory/delete", param);
}

export function updateCategories(param?: any) {
  return request("/admin/product-category/batchUpdate", param);
}

export function getCategory(param?: any) {
  return request("/admin/product-category/detail", param);
}
